package com.zhonghan.recharge.service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhonghan.recharge.dao.GascardInfoDao;
import com.zhonghan.recharge.pojo.GascardInfo;
import com.zhonghan.recharge.service.GascardInfoService;
@Service
public class GascardInfoServiceImpl implements GascardInfoService{
    @Autowired
    private GascardInfoDao gascardInfoDao;
    @Override
    public long getGascardInfoRowCount(){
        return gascardInfoDao.getGascardInfoRowCount();
    }
    @Override
    public List<GascardInfo> selectGascardInfo(){
        return gascardInfoDao.selectGascardInfo();
    }
    @Override
    public GascardInfo selectGascardInfoByObj(GascardInfo obj){
        return gascardInfoDao.selectGascardInfoByObj(obj);
    }
    @Override
    public GascardInfo selectGascardInfoById(Integer id){
        return gascardInfoDao.selectGascardInfoById(id);
    }
    @Override
    public int insertGascardInfo(GascardInfo value){
        return gascardInfoDao.insertGascardInfo(value);
    }
    @Override
    public int insertNonEmptyGascardInfo(GascardInfo value){
        return gascardInfoDao.insertNonEmptyGascardInfo(value);
    }
    @Override
    public int insertGascardInfoByBatch(List<GascardInfo> value){
        return gascardInfoDao.insertGascardInfoByBatch(value);
    }
    @Override
    public int deleteGascardInfoById(Integer id){
        return gascardInfoDao.deleteGascardInfoById(id);
    }
    @Override
    public int updateGascardInfoById(GascardInfo enti){
        return gascardInfoDao.updateGascardInfoById(enti);
    }
    @Override
    public int updateNonEmptyGascardInfoById(GascardInfo enti){
        return gascardInfoDao.updateNonEmptyGascardInfoById(enti);
    }

    public GascardInfoDao getGascardInfoDao() {
        return this.gascardInfoDao;
    }

    public void setGascardInfoDao(GascardInfoDao gascardInfoDao) {
        this.gascardInfoDao = gascardInfoDao;
    }
    public List<GascardInfo> selectGascardInfoByCardNo(String cardNo) {
       return gascardInfoDao.selectGascardInfoByCardNo(cardNo);
    }
    public long updateGascardInfoByIds(Integer id){
    	return gascardInfoDao.updateGascardInfoByIds(id);
    }
}